import request from '@/utils/request'

// 获取竞赛列表
export function getExamListApi(params) { 
    return request({
        method: 'get',
        url: 'exam/semiLogin/list',
        params
    })
}


// 获取竞赛以及竞赛第一道题目的信息
export function getExamFirstQuestionIdApi(params) {
    
    return request({
        method: 'get',
        url: 'exam/firstQuestion',
        params
    })
}

// 获取竞赛上一道题
export function getExamPrevQuestionApi(params) {
    return request({
        method: 'get',
        url: 'exam/prevQuestion',
        params
    })
}

// 获取竞赛下一道题
export function getExamNextQuestionApi(params) {
    return request({
        method: 'get',
        url: 'exam/nextQuestion',
        params
    })
}


// 获取竞赛排名数据
export function getExamRankListApi(params) {
    return request({
        method: 'get',
        url: 'exam/semiLogin/rank/list',
        params
    })
}